package com.evs.system.department.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.evs.basic.domain.BaseDomain;
import com.evs.system.employee.domain.Employee;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author Arvin
 * @since 2023-01-20
 */
@Data
public class Department extends BaseDomain{

    /**
     * 部门编号
     */
    @Excel(name = "部门编号" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String sn;
    /**
     * 部门名称
     */
    @Excel(name = "部门名称" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String name;
    /**
     * 部门的上级分类层级id
     */
    @Excel(name = "分类层级id" ,orderNum = "3", width = 40, isImportField = "true_st")
    private String dirPath;
    /**
     * 部门状态，1正常，0禁用
     */
    @Excel(name = "部门状态",orderNum = "4", width = 30, replace = { "正常_1", "禁用_0"}, isImportField = "true_st")
    private Integer state;
    /**
     * 部门管理员，关联Employee表id
     */
    private Long managerId;
    /**
     * 上级部门
     */
    private Long parentId;
    //商店id
    private Long shopId;
    //    管理员
    private Employee manager;
    //    上级部门
    private Department parent;
    //    子级目录elementUi使用
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();

}
